package com.dmcb.trade.business.utils;

import com.dmcb.common.business.utils.RegexUtil;
import com.dmcb.common.business.utils.WebUtil;
import com.dmcb.trade.business.constants.CrawlConstant;
import org.apache.commons.lang3.StringUtils;

/**
 * 爬虫工具类
 * Created by long on 2016/3/24.
 */
public class CrawlerUtil {

    /**
     * 获取链接对应标签
     *
     * @param link 链接
     * @return 标签
     */
    public static int tag(String link) {
        if (StringUtils.isBlank(link)) {
            return -1;
        }
        if (RegexUtil.startWithDomain(link, CrawlConstant.SOHU_URL)) {
            return CrawlConstant.SOHU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KUAIBAO_URL)) {
            return CrawlConstant.KUAIBAO_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.TOUTIAO_URL)) {
            return CrawlConstant.TOUTIAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.LIFE_TIMES_URL)) {
            return CrawlConstant.LIFE_TIMES_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIANSHU_URL)) {
            return CrawlConstant.JIANSHU_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.WEIXIN_URL)) {
            return CrawlConstant.WEIXIN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.WANGYI_URL)) {
            return CrawlConstant.WANGYI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XINLANGBOKE_URL)) {
            return CrawlConstant.XINLANGBOKE_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.XINLANG_URL)) {
            return CrawlConstant.XINLANG_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.FENGHUANG_URL)) {
            return CrawlConstant.FENGHUANG_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.TENGXUN_URL)) {
            return CrawlConstant.TENGXUN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XINHUA_URL)) {
            return CrawlConstant.XINHUA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YANGSHI_URL)) {
            return CrawlConstant.YANGSHI_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.HUANQIU_URL)) {
            return CrawlConstant.HUANQIU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.CANKAOXIAOXI_URL)) {
            return CrawlConstant.CANKAOXIAOXI_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.RENMIN_URL)) {
            return CrawlConstant.RENMIN_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.BAIDUBAIJIA_URL)) {
            return CrawlConstant.BAIDUBAIJIA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHONGGUOZHENGFU_URL)) {
            return CrawlConstant.ZHONGGUOZHENGFU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DAGONG_URL)) {
            return CrawlConstant.DAGONG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHONGGUOQINGNIN_URL)) {
            return CrawlConstant.ZHONGGUOQINGNIAN_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.YANGGUANG_URL)) {
            return CrawlConstant.YANGGUANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GUOJIZAIXIAN_URL)) {
            return CrawlConstant.GUOJIZAIXIAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XINGDAOHUANQIU_URL)) {
            return CrawlConstant.XINGDAOHUANQIU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DONGFANG_URL)) {
            return CrawlConstant.DONGFANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ANQINGXINWEN_URL)) {
            return CrawlConstant.ANQINGXINWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ANHUI_URL)) {
            return CrawlConstant.ANHUI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZONGYANGZAIXIAN_URL)) {
            return CrawlConstant.ZONGYANGZAIXIAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HUAXIASHIBAO_URL)) {
            return CrawlConstant.HUAXIASHIBAO_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.QIANLONGXINWEN_URL)) {
            return CrawlConstant.QIANLONGXINWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XINJINGBAO_URL)) {
            return CrawlConstant.XINJINGBAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TIANJINGWANG_URL)) {
            return CrawlConstant.TIANJINGWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.CHONGQINGWANBAO_URL)) {
            return CrawlConstant.CHONGQINGWANBAO_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.DONGNAN_URL)) {
            return CrawlConstant.DONGNAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.MEIZHOUWANG_URL)) {
            return CrawlConstant.MEIZHOUWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GUANGXIXINWEN_URL)) {
            return CrawlConstant.GUANGXIXINWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GUIZHOUDUSHIBAO_URL)) {
            return CrawlConstant.GUIZHOUDUSHIBAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.QILUWANBAO_URL)) {
            return CrawlConstant.QILUWANBAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HEBEIQINGNIAN_URL)) {
            return CrawlConstant.HEBEIQINGNIANBAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SHIJIAZHUANGXINWEN_URL)) {
            return CrawlConstant.SHIJIAZHUANGXINWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HANDANXINWEN_URL)) {
            return CrawlConstant.HANDANXINWEN_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.HEBEIXINWENWANG_URL)) {
            return CrawlConstant.HEBEIXINWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DONGFANGJINBAO_URL)) {
            return CrawlConstant.DONGFANGJINBAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHUMADIANXINWEN_URL)) {
            return CrawlConstant.ZHUMADIANXINWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.LUOHEWANG_URL)) {
            return CrawlConstant.LUOHEWANG_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.DAHEWANG_URL)) {
            return CrawlConstant.DAHEWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIEMIAN_URL)) {
            return CrawlConstant.JIEMIAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DUJIA_URL)) {
            return CrawlConstant.DUJIA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TAIMEITI_URL)) {
            return CrawlConstant.TAIMEITI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KANCHAIWANG_URL)) {
            return CrawlConstant.KANCHAIWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KE_URL)) {
            return CrawlConstant.KE_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.TOUZIJIE_URL)) {
            return CrawlConstant.TOUZIJIE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HUXIU_URL)) {
            return CrawlConstant.HUXIU_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.AIRUIWANG_URL)) {
            return CrawlConstant.AIRUIWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YIXINLI_URL)) {
            return CrawlConstant.YIXINLI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TOPYS_URL)) {
            return CrawlConstant.TOPYS_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.RRDSCPJL_URL)) {
            return CrawlConstant.RRDSCPJL_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ADMIN_URL)) {
            return CrawlConstant.ADMIN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GUOKE_URL)) {
            return CrawlConstant.GUOKE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZGSHIGE_URL)) {
            return CrawlConstant.ZGSHIGE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SHULAQUAN_URL)) {
            return CrawlConstant.SHULAQUAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.UEZZB_URL)) {
            return CrawlConstant.UEZZB_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.PINWAN_URL)) {
            return CrawlConstant.PINWAN_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.JINRONGJIE_URL)) {
            return CrawlConstant.JINRONGJIE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.NANFANGZHOUMO_URL)) {
            return CrawlConstant.NANFANGZHOUMO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.MEIJINGWANG_URL)) {
            return CrawlConstant.MEIJINGWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XLISHI_URL)) {
            return CrawlConstant.XLISHI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GQ_URL)) {
            return CrawlConstant.GQ_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HANXING_URL)) {
            return CrawlConstant.HANXING_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.NANDUYULE_URL)) {
            return CrawlConstant.NANDUYULE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZIMEI_URL)) {
            return CrawlConstant.ZIMEI_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.JINGHUASHIBAO_URL)) {
            return CrawlConstant.JINGHUASHIBAO_TAG;
        }/*else if(link.startsWith(CrawlConstant.WEIKOUWANG_URL)){
            return  CrawlConstant.WEIKOUWANG_TAG;
        }*/ else if (RegexUtil.startWithDomain(link,CrawlConstant.ZGQIYEJIA_URL)) {
            return CrawlConstant.ZGQIYEJIA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINYANGFOOD_URL)) {
            return CrawlConstant.JINYANGFOOD_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GONGSHI_URL)) {
            return CrawlConstant.GONGSHI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.CHUANGYEBANG_URL)) {
            return CrawlConstant.CHUANGYEBANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZGJINGYING_URL)) {
            return CrawlConstant.ZGJINGYING_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SHANGXUEYUAN_URL)) {
            return CrawlConstant.SHANGXUEYUAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHICHANG_URL)) {
            return CrawlConstant.ZHICHANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YIBANG_URL)) {
            return CrawlConstant.YIBANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TUIKU_URL)) {
            return CrawlConstant.TUIKU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YUELVXING_URL)) {
            return CrawlConstant.YUELVXING_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.CHUANSONGMEN_URL)) {
            return CrawlConstant.CHUANSONGMEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TUOPURIBAO_URL)) {
            return CrawlConstant.TUOPURIBAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SHENGHUOZHI_URL)) {
            return CrawlConstant.SHENGHUOZHI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.WENYISHENGHUO_URL)) {
            return CrawlConstant.WENYISHENGHUO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHONGXIRUAN_URL)) {
            return CrawlConstant.ZHONGXIRUAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHONGXIRUAN_URL)) {
            return CrawlConstant.ZHONGXIRUAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZGHYXXW_URL)) {
            return CrawlConstant.ZGHYXXW_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SHANGLUTONG_URL)) {
            return CrawlConstant.SHANGLUTONG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SWFWW_URL)) {
            return CrawlConstant.SWFWW_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SOULEWANG_URL)) {
            return CrawlConstant.SOULEWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HFIPLAW_URL)) {
            return CrawlConstant.HFIPLAW_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHONGHUAQUMINGWANG_URL)) {
            return CrawlConstant.ZHONGHUAQUMINGWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.FABANGWANG_URL)) {
            return CrawlConstant.FABANGWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SHANGBIAO_URL)) {
            return CrawlConstant.SHANGBIAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YIZHANYUEDU_URL)) {
            return CrawlConstant.YIZHANYUEDU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.NAJIAOLUO_URL)) {
            return CrawlConstant.NAJIAOLUO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.BEIJINGLIANMENG_URL)) {
            return CrawlConstant.BEIJINGLIANMENG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KUFAN_URL)) {
            return CrawlConstant.KUFAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.LUNWENWANG_URL)) {
            return CrawlConstant.LUNWENWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GERENTUSHUGUAN_URL)) {
            return CrawlConstant.GERENTUSHUGUAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.NIUBB_URL)) {
            return CrawlConstant.NIUBB_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.NIUGEWANG_URL)) {
            return CrawlConstant.NIUGEWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TZTT_URL)) {
            return CrawlConstant.TZTT_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.QKZZ_URL)) {
            return CrawlConstant.QKZZ_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.LIUXINGSHE_URL)) {
            return CrawlConstant.LIUXINGSHE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIANBIHUA_URL)) {
            return CrawlConstant.JIANBIHUA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YCWB_URL)) {
            return CrawlConstant.YCWB_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINYANGKEJI_URL)) {
            return CrawlConstant.JINYANGKEJI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINYANGJIANKANG_URL)) {
            return CrawlConstant.JINYANGJIANKANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINYANGLIFE_URL)) {
            return CrawlConstant.JINYANGLIFE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINYANGCULTURE_URL)) {
            return CrawlConstant.JINYANGCULTURE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINYANGMONEY_URL)) {
            return CrawlConstant.JINYANGMONEY_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINYANGEDU_URL)) {
            return CrawlConstant.JINYANGEDU_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.JINYANG_URL)) {
            return CrawlConstant.JINYANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZUOJIA_URL)) {
            return CrawlConstant.ZUOJIA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.AINIWEI_URL)) {
            return CrawlConstant.AINIWEI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YULUWENZHANG_URL)) {
            return CrawlConstant.YULUWENZHANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YUWENMI_URL)) {
            return CrawlConstant.YUWENMI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XUE_URL)) {
            return CrawlConstant.XUE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.FENGSHANG_URL)) {
            return CrawlConstant.FENGSHANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KUKUWANG_URL)) {
            return CrawlConstant.KUKUWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SANLIAN_URL)) {
            return CrawlConstant.SANLIAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.QUANQUANWANG_URL)) {
            return CrawlConstant.QUANQUANWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIUAIYUEDU_URL)) {
            return CrawlConstant.JIUAIYUEDU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIFENG_URL)) {
            return CrawlConstant.JIFENG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XUEYOU_URL)) {
            return CrawlConstant.XUEYOU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.BAIDUWENKU_URL)) {
            return CrawlConstant.BAIDUWENKU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SANYIWENKU_URL)) {
            return CrawlConstant.SANYIWENKU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SHYLJMJGJSYXGS_URL)) {
            return CrawlConstant.SHYLJMJGJSYXGS_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DAXUESHENGZAIXIAN_URL)) {
            return CrawlConstant.DAXUESHENGZAIXIAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KAOSHIBA_URL)) {
            return CrawlConstant.KAOSHIBA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YANCAOCHINA_URL)) {
            return CrawlConstant.YANCAOCHINA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KJSON_URL)) {
            return CrawlConstant.KJSON_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GUIYANG_URL)) {
            return CrawlConstant.GUIYANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XUZHOUZAIXIAN_URL)) {
            return CrawlConstant.XUZHOUZAIXIAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DAOZHOU_URL)) {
            return CrawlConstant.DAOZHOU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.NANYANGSHI_URL)) {
            return CrawlConstant.NANYANGSHI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZIXUE_URL)) {
            return CrawlConstant.ZIXUE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XUAN6_URL)) {
            return CrawlConstant.XUAN6_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIAZHANGBANG_URL)) {
            return CrawlConstant.JIAZHANGBANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.QINQINBAOBEI_URL)) {
            return CrawlConstant.QINQINBAOBEI_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.BEIFANG_URL)) {
            return CrawlConstant.BEIFANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.PAOPAO_URL)) {
            return CrawlConstant.PAOPAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DOUBANNOTE_URL)) {
            return CrawlConstant.DOUBANNOTE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DOUBANCOMMENT_URL)) {
            return CrawlConstant.DOUBANCOMMENT_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DOUBAN_URL)) {
            return CrawlConstant.DOUBAN_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.DOUBANMM_URL)) {
            return CrawlConstant.DOUBANMM_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.AIWEIBANG_URL)) {
            return CrawlConstant.AIWEIBANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KAODIANER_URL)) {
            return CrawlConstant.KAODIANER_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DIYIWANGDAI_URL)) {
            return CrawlConstant.DIYIWANGDAI_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.HEXUN_URL)) {
            return CrawlConstant.HEXUN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.RGZNZWZXPT_URL)) {
            return CrawlConstant.RGZNZWZXPT_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHANZHANGZHIJIA_URL)) {
            return CrawlConstant.ZHANZHANGZHIJIA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.QINGWANG_URL)) {
            return CrawlConstant.QINGWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HUIBOTOUYAN_URL)) {
            return CrawlConstant.HUIBOTOUYAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TIANYA_URL)) {
            return CrawlConstant.TIANYA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TONGXINSHIJIE_URL)) {
            return CrawlConstant.TONGXINSHIJIE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.BEIJINGCANKAO_URL)) {
            return CrawlConstant.BEIJINGCANKAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIANKANGSHENGHUO_URL)) {
            return CrawlConstant.JIANKANGSHENGHUO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YUER_URL)) {
            return CrawlConstant.YUER_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HUHU_URL)) {
            return CrawlConstant.HUHU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.WANHUAJING_URL)) {
            return CrawlConstant.WANHUAJING_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINTIANXINWEN_URL)) {
            return CrawlConstant.JINTIANXINWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.BEIERQIN_URL)) {
            return CrawlConstant.BEIERQIN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TONGLIANGSHICHUANG_URL)) {
            return CrawlConstant.TONGLIANGSHICHUANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.PINTU_URL)) {
            return CrawlConstant.PINTU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZGDZSWYJZX_URL)) {
            return CrawlConstant.ZGDZSWYJZX_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.YUEDU_URL)) {
            return CrawlConstant.YUEDU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.WEITOUTIAO_URL)) {
            return CrawlConstant.WEITOUTIAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HAOKU_URL)) {
            return CrawlConstant.HAOKU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SANWEN_URL)) {
            return CrawlConstant.SANWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YIDIANZIXUN_URL)) {
            return CrawlConstant.YIDIANZIXUN_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.FENSI_URL)) {
            return CrawlConstant.FENSI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.GUOKU_URL)) {
            return CrawlConstant.GUOKU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HUAZHIRENCAI_URL)) {
            return CrawlConstant.HUAZHIRENCAI_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.SHANGYOUQUAN_URL)) {
            return CrawlConstant.SHANGYOUQUAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZGGXXLZX_URL)) {
            return CrawlConstant.ZGGXXLZX_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.WENKANG_URL)) {
            return CrawlConstant.WENKANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.HBYUANCHENGJIAOYU_URL)) {
            return CrawlConstant.HBYUANCHENGJIAOYU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.YIMIYANGGUANG_URL)) {
            return CrawlConstant.YIMIYANGGUANG_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.JINGDIANSANWEN_URL)) {
            return CrawlConstant.JINGDIANSANWEN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.RENSHENGZHINAN_URL)) {
            return CrawlConstant.RENSHENGZHINAN_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.CN21_URL)) {
            return CrawlConstant.CN21_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.WEISHIDAI_URL)) {
            return CrawlConstant.WEISHIDAI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.BEIJINGWANBAO_URL)) {
            return CrawlConstant.BEIJINGWANBAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHIBEIJIAOYU_URL)) {
            return CrawlConstant.ZHIBEIJIAOYU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.BIYOU_URL)) {
            return CrawlConstant.BIYOU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.LEDU_URL)) {
            return CrawlConstant.LEDU_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.ZHONGGUOYULE_URL)) {
            return CrawlConstant.ZHONGGUOYULE_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.DAZUIBABA_URL)) {
            return CrawlConstant.DAZUIBABA_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHANGZISHI_URL)) {
            return CrawlConstant.ZHANGZISHI_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.XINLAN_URL)) {
            return CrawlConstant.XINLAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.MEITAN_URL)) {
            return CrawlConstant.MEITAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIMOXINXIGANG_URL)) {
            return CrawlConstant.JIMOXINXIGANG_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.GUANGMING_URL)) {
            return CrawlConstant.GUANGMING_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.AOYI_URL)) {
            return CrawlConstant.AOYI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.CHANGJIANG_URL)) {
            return CrawlConstant.CHANGJIANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.LANJING_URL)) {
            return CrawlConstant.LANJING_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JIASUHUI_URL)) {
            return CrawlConstant.JIASUHUI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.PIANKE_URL)) {
            return CrawlConstant.PIANKE_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.XINIUGUSHI_URL)) {
            return CrawlConstant.XINIUGUSHI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.MAFENGWO_URL)) {
            return CrawlConstant.MAFENGWO_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.CHANGJIANGRIBAO_URL)) {
            return CrawlConstant.CHANGJIANGRIBAO_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.ZOL_URL)) {
            return CrawlConstant.ZOL_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SANMAO_URL)) {
            return CrawlConstant.SANMAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.JINGDIAN_URL)) {
            return CrawlConstant.JINGDIAN_TGA;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SHIGUANGWANG_URL)) {
            return CrawlConstant.SHIGUANGWANG_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.KAIDISHEQU_URL)) {
            return CrawlConstant.KAIDISHEQU_TGA;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.BOAOREVIEW_URL)) {
            return CrawlConstant.BOAOREVIEW_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.JINJIANGNEWS_URL)) {
            return CrawlConstant.JINJIANGNEWS_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.QIANJIANGWANBAO_URL)) {
            return CrawlConstant.QIANJIANGWANBAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHIHU_URL)) {
            return CrawlConstant.ZHIHU_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.FUWUHUI_URL)) {
            return CrawlConstant.FUWUHUI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.WAITAN_URL)) {
            return CrawlConstant.WAITAN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.PENGPAI_URL)) {
            return CrawlConstant.PENGPAI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.XUEQIU_URL)) {
            return CrawlConstant.XUEQIU_TAG;
        } else if (RegexUtil.startWithDomain(link, CrawlConstant.WACAI_URL)) {
            return CrawlConstant.WACAI_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.LIEYUE_URL)) {
            return CrawlConstant.LIEYUN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.SOUGOUWEIXIN_URL)) {
            return CrawlConstant.SOUGOUWEIXIN_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.TUONIAO_URL)) {
            return CrawlConstant.TUONIAO_TAG;
        } else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHEJIANGRIBAO_URL)) {
            return CrawlConstant.ZHEJIANGRIBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.GONGCHANDANGYUAN_URL)) {
            return CrawlConstant.GONGCHANDANGYUAN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHEJIANGFAZHI_URL)) {
            return CrawlConstant.ZHEJIANGFAZHI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.JIANGNANYOUBAO_URL)) {
            return CrawlConstant.JIANGNANYOUBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.HAININGRIBAO_URL)) {
            return CrawlConstant.HAININGRIBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.DONGYANGRIBAO_URL)) {
            return CrawlConstant.DONGYANGRIBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.WENLINGRIBAO_URL)) {
            return CrawlConstant.WENLINGRIBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.MEISHUBAO_URL)) {
            return CrawlConstant.MEISHUBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHEJIANGLAONIANBAO_URL)) {
            return CrawlConstant.ZHEJIANGLAONIANBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.KEQIAORIBAO_URL)) {
            return CrawlConstant.KEQIAORIBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.CHUANGZHI_URL)) {
            return CrawlConstant.CHUANGZHI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.QUANJIHANGMU_URL)) {
            return CrawlConstant.QUANJIHANGMU_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.JIKEGONGYUAN_URL)) {
            return CrawlConstant.JIKEGONGYUAN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.BOWANGZHI_URL)) {
            return CrawlConstant.BOWANGZHI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.QIANBAO_URL)) {
            return CrawlConstant.QIANBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.QIANBIDAO_URL)) {
            return CrawlConstant.QIANBIDAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHEJIANG24HOUR_URL)) {
            return CrawlConstant.ZHEJIANG24HOUR_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.BAIJIAHAO_URL)) {
            return CrawlConstant.BAIJIAHAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.JIANKANGSHIBAO_URL)) {
            return CrawlConstant.JIANKANGSHIBAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.TEMAI_URL)) {
            return CrawlConstant.TEMAI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.KUAIWANSIWEI_URL)) {
            return CrawlConstant.KUAIWANSIWEI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.LUOYANGXINWEN_URL)) {
            return CrawlConstant.LUOYANGXINWEN_TAG;
        }else if (RegexUtil.startWithDomain(link, CrawlConstant.UCTOUTIAO_URL)) {
            return CrawlConstant.UCTOUTIAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.SSPAI_URL)) {
            return CrawlConstant.SSPAI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.CHAOQI_URL)) {
            return CrawlConstant.CHAOQI_TAG;
        }else if (RegexUtil.startWithDomain(link, CrawlConstant.BEIJINGSHIJIAN_URL)) {
            return CrawlConstant.BEIJINGSHIJIAN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.UCTOUTIAOMOBILE_URL)) {
            return CrawlConstant.UCTOUTIAOMOBILE_TAG;
        }else if (RegexUtil.startWithDomain(link, CrawlConstant.LEJU_URL)) {
            return CrawlConstant.LEJU_TAG;
        }else if (RegexUtil.startWithDomain(link, CrawlConstant.ZHIYIN_URL)) {
            return CrawlConstant.ZHIYIN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.AIFANER_URL)) {
            return CrawlConstant.AIFANER_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.YOUDIAO_URL)) {
            return CrawlConstant.YOUDIAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.HINABIAN_URL)) {
            return CrawlConstant.HINABIAN_TAG;
        }else if (RegexUtil.startWithDomain(link, CrawlConstant.TOUZISHEQU_URL)) {
            return CrawlConstant.TOUZISHEQU_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.KUAIZIXUN_URL)) {
            return CrawlConstant.KUAIZIXUN_TAG;
        }else if (RegexUtil.startWithDomain(link, CrawlConstant.JINRIXINXIANSHI_URL)) {
            return CrawlConstant.JINRIXINXIANSHI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.DANDANZAN_URL)) {
            return CrawlConstant.DANDANZAN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.PINLUEWANG_URL)) {
            return CrawlConstant.PINLUEWANG_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.YULEZIXUNWANG_URL)) {
            return CrawlConstant.YULEZIXUNWANG_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHENGEXUEWANG_URL)) {
            return CrawlConstant.ZHENGEXUEWANG_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.QIHU_URL)) {
            return CrawlConstant.QIHU_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.HUAQI_URL)) {
            return CrawlConstant.HUAQI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.SHAOYANGFC_URL)) {
            return CrawlConstant.SHAOYANGFC_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHUQIUZHIBO_URL)) {
            return CrawlConstant.ZHUQIUZHIBO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.BAIJIAZAPING_URL)) {
            return CrawlConstant.BAIJIAZAPING_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.TSZLAOWU_URL)) {
            return CrawlConstant.TSZLAOWU_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.TIANCHENGYILIAO_URL)) {
            return CrawlConstant.TIANCHENGYILIAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.BITCOIN_URL)) {
            return CrawlConstant.BITCOIN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.TIANKONGTALK_URL)) {
            return CrawlConstant.TIANKONGTALK_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.ZHONGYUAN_URL)) {
            return CrawlConstant.ZHONGYUAN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.BANBAN_URL)) {
            return CrawlConstant.BANBAN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.LATIAOZIXUN_URL)) {
            return CrawlConstant.LATIAOZIXUN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.JIANKANGTOUTIAO_URL)) {
            return CrawlConstant.JIANKANGTOUTIAO_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.JIAXINGXW_URL)) {
            return CrawlConstant.JIAXINGXW_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.XINLANGKANDIAN_URL)) {
            return CrawlConstant.XINLANGKANDIAN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.BUCUOREBANG_URL)) {
            return CrawlConstant.BUCUOREBANG_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.JINRIGUANZHU_URL)) {
            return CrawlConstant.JINRIGUANZHU_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.FUJIANSHUCHI_URL)) {
            return CrawlConstant.FUJIANSHUCHI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.HUATUZI_URL)) {
            return CrawlConstant.HUATUZI_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.BEIFANGLUNTAN_URL)) {
            return CrawlConstant.BEIFANGLUNTAN_TAG;
        }else if (RegexUtil.startWithDomain(link,CrawlConstant.NVRENWANG_URL)) {
            return CrawlConstant.NVRENWANG_TAG;
        }
        return -1;
    }

   /* public static void main(String[] args) {
        System.out.print(WebUtil.buildRequest("http://www.ebrun.com/rss/original.xml",false));
       // String url = "http://www.jianshu.com/p/c4cd02f6abc7";
    }*/
}
